/**
 * Created by IntelliJ IDEA
 *
 * @author zhengjie
 * @Date:2022/1/8 11:10
 * @Version 1.0
 */
package com.zj.ssm.controller;

import com.zj.ssm.result.AjaxResult;
import com.zj.ssm.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("role")
public class RoleController {

    @Autowired
    private RoleService roleService;

    @RequestMapping("list")
    public AjaxResult list(){
        return roleService.list();
    }
}
